package com.mvc.entity;

import java.io.Serializable;
import java.sql.Timestamp;

import javax.persistence.Basic;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name = "is_iconinfo")
public class Icon_IconInfo implements Serializable {
  private static final long serialVersionUID = 1L;
  @Id
  @Column(name = "id")
  @GeneratedValue(strategy=GenerationType.IDENTITY)
  private Long id;
  @Basic(optional = false)
  @Column(name="file_name")
  private String fileName;       //文件名称
  
  @Basic(optional = false)
  @Column(name="upload_user")
  private String uploadUser;     //上传用户
  
  @Basic(optional = false)
  @Column(name="file_path")
  private String filePath;       //文件路径
  
  @ManyToOne(targetEntity=Icon_SizeType.class, fetch=FetchType.EAGER, cascade={CascadeType.ALL})
  @JoinColumn(name="size_type")
  private Icon_SizeType sizeType;       //尺寸类别
  
  @ManyToOne(targetEntity=Icon_ColorType.class, fetch=FetchType.EAGER, cascade={CascadeType.ALL})
  @JoinColumn(name="color_type")
  private Icon_ColorType colorType;     //颜色类别
  
  @ManyToOne(targetEntity=Icon_SeriesType.class, fetch=FetchType.EAGER, cascade={CascadeType.ALL})
  @JoinColumn(name="series_type")
  private Icon_SeriesType seriesType;   //系列名称
  
  @Basic(optional = false)
  @Column(name="upload_time")
  private Timestamp uploadTime;  //上传时间
  
  @Basic(optional = false)
  @Column(name="mark")
  private String mark;            //标签
  
  @Column(name="display_count")
  private Long displayCount;     //显示次数
  
  @Column(name="download_count")
  private Long downloadCount;    //下载次数
  
  public Long getId() {
    return id;
  }
  public void setId(Long id) {
    this.id = id;
  }
  public String getFileName() {
    return fileName;
  }
  public void setFileName(String fileName) {
    this.fileName = fileName;
  }
  public String getUploadUser() {
    return uploadUser;
  }
  public void setUploadUser(String uploadUser) {
    this.uploadUser = uploadUser;
  }
  public String getFilePath() {
    return filePath;
  }
  public void setFilePath(String filePath) {
    this.filePath = filePath;
  }
  public Icon_SizeType getSizeType() {
    return sizeType;
  }
  public void setSizeType(Icon_SizeType sizeType) {
    this.sizeType = sizeType;
  }
  public Icon_ColorType getColorType() {
    return colorType;
  }
  public void setColorType(Icon_ColorType colorType) {
    this.colorType = colorType;
  }
  public Icon_SeriesType getSeriesType() {
    return seriesType;
  }
  public void setSeriesType(Icon_SeriesType seriesType) {
    this.seriesType = seriesType;
  }
  public Timestamp getUploadTime() {
    return uploadTime;
  }
  public void setUploadTime(Timestamp uploadTime) {
    this.uploadTime = uploadTime;
  }
  public String getMark() {
    return mark;
  }
  public void setMark(String mark) {
    this.mark = mark;
  }
  public Long getDisplayCount() {
    return displayCount;
  }
  public void setDisplayCount(Long displayCount) {
    this.displayCount = displayCount;
  }
  public Long getDownloadCount() {
    return downloadCount;
  }
  public void setDownloadCount(Long downloadCount) {
    this.downloadCount = downloadCount;
  }
}

